using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.UIElements;

public class GridController : MonoBehaviour
{
    private GridLayoutGroup gridLayout;
    private void Start()
    {
        gridLayout = GetComponent<GridLayoutGroup>();
    }

    public void Set()
    {
        if (gridLayout == null) return;
        gridLayout.constraint = GridLayoutGroup.Constraint.FixedColumnCount;
        gridLayout.constraintCount = GameManager.Instance.lineSize;
    }
}
